home *** CD-ROM | disk | FTP | other *** search
- VERSION 5.00
- Object = "{B3ECB8C8-B046-11D2-B522-D0863DEC394B}#1.0#0"; "MagicFrm.ocx"
- Begin VB.Form FRMSystemTray
- Caption = "Exemplo do uso do SystemTray"
- ClientHeight = 3300
- ClientLeft = 60
- ClientTop = 345
- ClientWidth = 3930
- LinkTopic = "Form1"
- ScaleHeight = 3300
- ScaleWidth = 3930
- ShowInTaskbar = 0 'False
- StartUpPosition = 3 'Windows Default
- Begin VB.Frame FRMIcones
- Caption = "Clique em um dos
- cones para alterar"
- Height = 915
- Left = 0
- TabIndex = 2
- Top = 1200
- Width = 3795
- Begin VB.PictureBox PICElement
- Height = 550
- Index = 0
- Left = 120
- Picture = "FRMSystemTray.frx":0000
- ScaleHeight = 495
- ScaleWidth = 495
- TabIndex = 8
- ToolTipText = "Click Here To Change The TrayIcon"
- Top = 240
- Width = 550
- End
- Begin VB.PictureBox PICElement
- Height = 550
- Index = 1
- Left = 720
- Picture = "FRMSystemTray.frx":0442
- ScaleHeight = 495
- ScaleWidth = 495
- TabIndex = 7
- ToolTipText = "Click Here To Change The TrayIcon"
- Top = 240
- Width = 550
- End
- Begin VB.PictureBox PICElement
- Height = 550
- Index = 2
- Left = 1320
- Picture = "FRMSystemTray.frx":0884
- ScaleHeight = 495
- ScaleWidth = 495
- TabIndex = 6
- ToolTipText = "Click Here To Change The TrayIcon"
- Top = 240
- Width = 550
- End
- Begin VB.PictureBox PICElement
- Height = 550
- Index = 3
- Left = 1920
- Picture = "FRMSystemTray.frx":0CC6
- ScaleHeight = 495
- ScaleWidth = 495
- TabIndex = 5
- ToolTipText = "Click Here To Change The TrayIcon"
- Top = 240
- Width = 550
- End
- Begin VB.PictureBox PICElement
- Height = 550
- Index = 4
- Left = 2520
- Picture = "FRMSystemTray.frx":1108
- ScaleHeight = 495
- ScaleWidth = 495
- TabIndex = 4
- ToolTipText = "Click Here To Change The TrayIcon"
- Top = 240
- Width = 550
- End
- Begin VB.PictureBox PICElement
- Height = 550
- Index = 5
- Left = 3120
- Picture = "FRMSystemTray.frx":154A
- ScaleHeight = 495
- ScaleWidth = 495
- TabIndex = 3
- ToolTipText = "Click Here To Change The TrayIcon"
- Top = 240
- Width = 550
- End
- End
- Begin VB.TextBox TXTTip
- Height = 285
- Left = 60
- MaxLength = 60
- TabIndex = 1
- Text = "Digite um texto aqui para aparecer na bandeja"
- Top = 405
- Width = 3615
- End
- Begin VB.CheckBox CHKShowIcon
- Caption = "Exibir
- cone"
- Height = 255
- Left = 60
- TabIndex = 0
- Top = 780
- Width = 1275
- End
- Begin MagicForms.SystemTray SystemTray1
- Left = 2280
- Top = 720
- _ExtentX = 2223
- _ExtentY = 847
- Icon = "FRMSystemTray.frx":198C
- End
- Begin VB.Label Label3
- Caption = "Right Click on the SystemTray Icon to see a popup menu made width Visual Basic."
- ForeColor = &H000000FF&
- Height = 495
- Left = 60
- TabIndex = 11
- Top = 2700
- Width = 3795
- End
- Begin VB.Label Label2
- Caption = "Clique com o bot
- o direito no Icone SystemTray para ver um menu popup feito pelo Visual Basic."
- Height = 495
- Left = 60
- TabIndex = 10
- Top = 2160
- Width = 3795
- End
- Begin VB.Label Label1
- Caption = "TipText / Texto da Dica"
- Height = 255
- Left = 60
- TabIndex = 9
- Top = 180
- Width = 1875
- End
- Begin VB.Menu MNUPopUp
- Caption = "MenuPopUp"
- Visible = 0 'False
- Begin VB.Menu MNUMaximize
- Caption = "Maximizar"
- End
- Begin VB.Menu MNUMinimize
- Caption = "Minimizar"
- End
- Begin VB.Menu MNURestore
- Caption = "Restaurar"
- End
- Begin VB.Menu mnuseparador
- Caption = "-"
- End
- Begin VB.Menu MNUEnd
- Caption = "Sair"
- End
- Begin VB.Menu MNUAbout
- Caption = "Sobre / About"
- End
- End
- Attribute VB_Name = "FRMSystemTray"
- Attribute VB_GlobalNameSpace = False
- Attribute VB_Creatable = False
- Attribute VB_PredeclaredId = True
- Attribute VB_Exposed = False
- Private Sub CHKShowIcon_Click()
- If CHKShowIcon.Value = 1 Then
- FRMIcones.Visible = True
- SystemTray1.Show
- FRMIcones.Visible = False
- SystemTray1.Hide
- End If
- End Sub
- Private Sub Form_Load()
- CHKShowIcon.Value = 1
- End Sub
- Private Sub MNUAbout_Click()
- SystemTray1.Sobre
- End Sub
- Private Sub MNUEnd_Click()
- End Sub
- Private Sub MNUMaximize_Click()
- Me.WindowState = 2
- End Sub
- Private Sub MNUMinimize_Click()
- Me.WindowState = 1
- End Sub
- Private Sub MNURestore_Click()
- Me.WindowState = 0
- End Sub
- Private Sub PICElement_Click(Index As Integer)
- 'Lembre-se de usar "SET" para alterar o icone
- 'Remember to use "SET" to change the icon
- Set SystemTray1.Icon = PICElement(Index).Picture
- End Sub
- Private Sub SystemTray1_LeftButtonDown()
- MsgBox "Voc
- clicou aqui" & Chr(10) & "You clicked here"
- Me.Show
- End Sub
- Private Sub SystemTray1_RightButtonUp()
- PopupMenu MNUPopUp
- End Sub
- Private Sub TXTTip_Change()
- SystemTray1.TextoDica = TXTTip.Text
- End Sub
-